Developer --> Technical Publications
PATH Hardware Documentation > Device Managers and Drivers > ATA Devices > ATA Device Software Guide


get partition write protect status

The get partition write protect status status function returns 1 if the specified partition is software write protected, 0 if it is not. The partition is specified either by its logical drive number or its block address on the media.


Parameter block

-->

csCode

A value of 45.
-->

ioVRefNum

The logical drive number or 0 if using partition block address
-->

csParam[ ]

The partition block address (long) if ioVRefNum param = 0.
<--

ioResult

See result codes.
RESULT CODES

noErr

0 Successful completion, no error occurred

nsDrvErr

-56 The specified logical drive number does not exist

© 1999 Apple Computer, Inc. — (Last Updated 30 Oct 97)

Previous | Back Up One Level | Next | Show Frames | Hide Frames